<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Returns the current version of the Apache Solr extension</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.solr.html">Solr 函数</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="solr.examples.html">范例</a></div>
 <div class="up"><a href="ref.solr.html">Solr 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.solr-get-version" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">solr_get_version</h1>
  <p class="verinfo">(PECL solr &gt;= 0.9.1)</p><p class="refpurpose"><span class="refname">solr_get_version</span> &mdash; <span class="dc-title">Returns the current version of the Apache Solr extension</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.solr-get-version-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>solr_get_version</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   This function returns the current version of the extension as a string.
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.solr-get-version-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.solr-get-version-returnvalues">
  <h3 class="title">返回值</h3>
  
  <p class="para">
   It returns a string on success and <strong><code>FALSE</code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.solr-get-version-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   This function throws no errors or exceptions.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.solr-get-version-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-4608">
    <p><strong>Example #1 <span class="function"><strong>solr_get_version()</strong></span> example</strong></p>
    <div class="example-contents"><p>
     Any text that describes the purpose of the example, or what
     goes on in the example should be here.
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />$solr_version&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">solr_get_version</span><span style="color: #007700">();<br /><br />print&nbsp;</span><span style="color: #0000BB">$solr_version</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程的输出类似于：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>

0.9.6

</pre></div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.solr-get-version-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="solrutils.getsolrversion.html" class="function" rel="rdfs-seeAlso">SolrUtils::getSolrVersion()</a> - Returns the current version of the Solr extension</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="ref.solr.html">Solr 函数</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="solr.examples.html">范例</a></div>
 <div class="up"><a href="ref.solr.html">Solr 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
